package com.shenfa.bean.bill.stencil;

/**
 * 模版主表字典映射类
 * 
 * @author 龙辰三
 * @date 2011-8-23
 * 
 */
public class StencilMaster {

	private String stencilno; // 模版编号
	private String stencilname; // 模版名称
	private int stencilversion; // 模板版本号
	private String cardpordid; // 卡产品号
	private char stenciltypeno; // 模版类型编号;1.纸质2.电子3.短信
	private String stencilstorpath;// 模版存储路径
	private String stenciljobpath; // JOB保存路径
	private String stencilimages; // 样张路径
	private char stencilstate; // 状态 ;1:启用0:停用
	private String stencilpersonno;// 人员编号
	private char stencilcreatetime;// 创建时间

	public StencilMaster() {
		super();
	}

	public StencilMaster(String stencilno, String stencilname,
			int stencilversion, String cardpordid, char stenciltypeno,
			String stencilstorpath, String stenciljobpath,
			String stencilimages, char stencilstate, String stencilpersonno,
			char stencilcreatetime) {
		super();
		this.stencilno = stencilno;
		this.stencilname = stencilname;
		this.stencilversion = stencilversion;
		this.cardpordid = cardpordid;
		this.stenciltypeno = stenciltypeno;
		this.stencilstorpath = stencilstorpath;
		this.stenciljobpath = stenciljobpath;
		this.stencilimages = stencilimages;
		this.stencilstate = stencilstate;
		this.stencilpersonno = stencilpersonno;
		this.stencilcreatetime = stencilcreatetime;
	}

	public String getStencilid() {
		return stencilno;
	}

	public void setStencilid(String stencilid) {
		this.stencilno = stencilid;
	}

	public String getStencilname() {
		return stencilname;
	}

	public void setStencilname(String stencilname) {
		this.stencilname = stencilname;
	}

	public int getStencilversion() {
		return stencilversion;
	}

	public void setStencilversion(int stencilversion) {
		this.stencilversion = stencilversion;
	}

	public String getCardpordid() {
		return cardpordid;
	}

	public void setCardpordid(String cardpordid) {
		this.cardpordid = cardpordid;
	}

	public char getStenciltypeno() {
		return stenciltypeno;
	}

	public void setStenciltypeno(char stenciltypeno) {
		this.stenciltypeno = stenciltypeno;
	}

	public String getStencilstorpath() {
		return stencilstorpath;
	}

	public void setStencilstorpath(String stencilstorpath) {
		this.stencilstorpath = stencilstorpath;
	}

	public String getStenciljobpath() {
		return stenciljobpath;
	}

	public void setStenciljobpath(String stenciljobpath) {
		this.stenciljobpath = stenciljobpath;
	}

	public String getStencilimages() {
		return stencilimages;
	}

	public void setStencilimages(String stencilimages) {
		this.stencilimages = stencilimages;
	}

	public char getStencilstate() {
		return stencilstate;
	}

	public void setStencilstate(char stencilstate) {
		this.stencilstate = stencilstate;
	}

	public String getStencilpersonno() {
		return stencilpersonno;
	}

	public void setStencilpersonno(String stencilpersonno) {
		this.stencilpersonno = stencilpersonno;
	}

	public char getStencilcreatetime() {
		return stencilcreatetime;
	}

	public void setStencilcreatetime(char stencilcreatetime) {
		this.stencilcreatetime = stencilcreatetime;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((cardpordid == null) ? 0 : cardpordid.hashCode());
		result = prime * result + stencilcreatetime;
		result = prime * result
				+ ((stencilno == null) ? 0 : stencilno.hashCode());
		result = prime * result
				+ ((stencilimages == null) ? 0 : stencilimages.hashCode());
		result = prime * result
				+ ((stenciljobpath == null) ? 0 : stenciljobpath.hashCode());
		result = prime * result
				+ ((stencilname == null) ? 0 : stencilname.hashCode());
		result = prime * result
				+ ((stencilpersonno == null) ? 0 : stencilpersonno.hashCode());
		result = prime * result + stencilstate;
		result = prime * result
				+ ((stencilstorpath == null) ? 0 : stencilstorpath.hashCode());
		result = prime * result + stenciltypeno;
		result = prime * result + stencilversion;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		StencilMaster other = (StencilMaster) obj;
		if (cardpordid == null) {
			if (other.cardpordid != null)
				return false;
		} else if (!cardpordid.equals(other.cardpordid))
			return false;
		if (stencilcreatetime != other.stencilcreatetime)
			return false;
		if (stencilno == null) {
			if (other.stencilno != null)
				return false;
		} else if (!stencilno.equals(other.stencilno))
			return false;
		if (stencilimages == null) {
			if (other.stencilimages != null)
				return false;
		} else if (!stencilimages.equals(other.stencilimages))
			return false;
		if (stenciljobpath == null) {
			if (other.stenciljobpath != null)
				return false;
		} else if (!stenciljobpath.equals(other.stenciljobpath))
			return false;
		if (stencilname == null) {
			if (other.stencilname != null)
				return false;
		} else if (!stencilname.equals(other.stencilname))
			return false;
		if (stencilpersonno == null) {
			if (other.stencilpersonno != null)
				return false;
		} else if (!stencilpersonno.equals(other.stencilpersonno))
			return false;
		if (stencilstate != other.stencilstate)
			return false;
		if (stencilstorpath == null) {
			if (other.stencilstorpath != null)
				return false;
		} else if (!stencilstorpath.equals(other.stencilstorpath))
			return false;
		if (stenciltypeno != other.stenciltypeno)
			return false;
		if (stencilversion != other.stencilversion)
			return false;
		return true;
	}

}
